package com.gzx.spring.apis.service;

import org.springframework.stereotype.Service;

import com.gzx.risk.core.apis.command.ApiCommand;
import com.gzx.risk.core.apis.context.ApiContext;
import com.gzx.risk.core.apis.result.MainResult;
import com.gzx.risk.core.apis.result.RiskResult;

import lombok.extern.slf4j.Slf4j;

@Service
@Slf4j
public class MainService implements ApiCommand {
	@Override
	public RiskResult exec(String groupName, ApiContext ctx) {
		MainResult result = ctx.getMainResult();
		result.setDataName("main");
		result.setGroupName(groupName);
		ctx.add(result);
		return result;
	}

	@Override
	public int getGroupId() {
		return 0;
	}

}
